package level.editor.view.menu;

import javax.swing.AbstractAction;

import level.editor.view.action.file.FileAction;
import level.editor.view.desktop.Desktop;

public class MenuFile extends MenuCategory
{
	public MenuFile(Desktop desktop)
	{
		super("File");
		this.setMnemonic('F');
		init(desktop);
	}
	
	protected void init(Desktop desktop)
	{
		for (AbstractAction action : desktop.getActions())
		{
			if (action instanceof FileAction)
			add(action);
		}
	}
}
